package org.shan.hangtian;

import com.alibaba.fastjson.JSON;
import org.shan.hangtian.properties.HangtianProperties;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;

/**
 * Created by amanda.shan on 2020/10/5.
 */
public class TestDevice {

    public static void main(String[] args) throws IOException, InterruptedException {
        HangtianProperties properties = HangtianProperties.getInstance();

        Socket socket = new Socket();
        socket.connect(new InetSocketAddress(properties.getPort()));

        socket.getOutputStream().write(new byte[10000]);

        Thread.sleep(2000000000);
    }
}
